From: Doug Goldstein Date: Sun, 18 Feb 2018 04:23:27 +0000 (-0600) Subject: doc: add explicit example with ^ and leading 0 X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~2^2~94^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=996197094cc070e4783a568442b8e7af2c0a9649;p=cargo.git doc: add explicit example with ^ and leading 0 Since the leading 0 is treated a bit special, its worth it to have an explicit example to match the above example of the major version being > 0. --- diff --git a/src/doc/src/reference/specifying-dependencies.md b/src/doc/src/reference/specifying-dependencies.md index b5044bd73..c63b5835d 100644 --- a/src/doc/src/reference/specifying-dependencies.md +++ b/src/doc/src/reference/specifying-dependencies.md @@ -42,6 +42,7 @@ be allowed with them: ^1.2 := >=1.2.0 <2.0.0 ^1 := >=1.0.0 <2.0.0 ^0.2.3 := >=0.2.3 <0.3.0 +^0.2 := >= 0.2.0 < 0.3.0 ^0.0.3 := >=0.0.3 <0.0.4 ^0.0 := >=0.0.0 <0.1.0 ^0 := >=0.0.0 <1.0.0